 
import re
 
#组
string = "PythonPythonPythonPythonPython"

#1.匹配出三个'python'连续的字段
result1_1 = re.findall('(PythonPythonPython)',string)
result1_2 = re.findall('(Python){3}',string)
print("\n打印result1:")    
print(result1_1)          #打印：['pythonpythonpython']
print(result1_2)          #打 印：['pythonpythonpython']  ////待验证

